<?php
// IDENTIFY IF IT IS A LOGON USER
if(!isset($aususrpinverid) || !isset($aususrtype))
{
	header("location:".WELCOME_COMPASS_HOME."/index.html");
	exit;
}
else
{
	/* Check if the visiter is the page owner */
	$scu = phpclone($dbObj);
	$tableName = $tableSelectionArr[$aususrtype.$aususrtype];
	$sql = "SELECT * FROM `".$tableName."` WHERE `temp_userid` = '".$aususrpinverid."'";
	$tRecordSet = $scu -> getOneQuery($sql); 
	if($tRecordSet)
	{
		if($tRecordSet['usr_id'] != $userid)
		{
			header("location:".ERROR_404);
			exit;
		}
	}
	else
	{
		/* Not An Acivated Account*/
			header("location:".ERROR_404);
			exit;
	}
}
/* End: Page Security *
 * ***************************/

//checkUrl();
	?>